<?php

namespace app\admin\validate;
use think\Validate;

class AuthRule extends Validate
{
    //验证规则
    protected $rule = [
        ['title', 'require', '请输入角色名称'],
    ];

    //验证场景
    protected $scene = [
        'add' => ['title'],
        'edit' => ['title']
    ];

}